﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using MathematicallySafe.HeadCounter.Data.Common;

namespace MathematicallySafe.HeadCounter.Dialogs
{
    /// <summary>
    /// Interaction logic for NewRaiderQueryDialog.xaml
    /// </summary>
    public partial class NewRaiderQueryDialog : Window
    {
        public NewRaiderQueryDialog(string name, CharacterClass characterClass, CharacterRace characterRace, DateTime joined)
        {
            InitializeComponent();
            Controller = new NewRaiderQueryController(name, characterClass, characterRace, joined);
        }

        public NewRaiderQueryController Controller
        {
            get { return DataContext as NewRaiderQueryController; }
            set
            {
                DataContext = value;
            }
        }

        private void OkButton_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }
    }
}
